package com.delayqueue.common.netty;

import com.delayqueue.common.enums.MessageType;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class NettyMessage {

    private MessageType messageType;
    private String messageContent;

    public NettyMessage() {
    }

    public NettyMessage(MessageType messageType) {
        this.messageType = messageType;
    }

    public NettyMessage(MessageType messageType, String messageContent, int port) {
        this.messageType = messageType;
        this.messageContent = messageContent;
    }

    public NettyMessage(MessageType messageType, String messageContent) {
        this.messageType = messageType;
        this.messageContent = messageContent;
    }
}
